﻿#region

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuXiaChu.OrderDishes.Model;
using BuXiaChu.OrderDishes.DAL;

#endregion

namespace BuXiaChu.OrderDishes.BLL
{
    public class DeliveryAddressManager
    {
        /// <summary>
        /// Insert Or Update
        /// </summary>
        public static bool Save(DeliveryAddressModel obj)
        {
            return DeliveryAddressDAL.Save(obj);
        }

        public static DeliveryAddressModel GetDeliveryAddressById(int id)
        {
            return DeliveryAddressDAL.GetDeliveryAddressById(id);
        }

        public static List<DeliveryAddressModel> Search(string sqlWhere, int pageIndex, int pageSize, out int pageCount)
        {
            return DeliveryAddressDAL.Search(sqlWhere, pageIndex, pageSize, out pageCount);
        }
    }
}
